/**     
 * @Title: Consumer.java   
 * @Package me.mq.consumer   
 * @Description: TODO
 * @author weiwei 
 * @date 2018年5月30日 上午9:40:45   
 * @version V1.0     
 */
package me.mq.consumer;

import me.mq.config.RabbitMQConfiguration;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import cn.hutool.core.lang.Console;

/**
 * @ClassName: Consumer
 * @Description: TODO
 * @author weiwei
 * @date 2018年5月30日 上午9:40:45
 * 
 */
@Component
public class Consumer {

	@RabbitListener(queues = RabbitMQConfiguration.QUEUE_NAME)
	public void consumeMessage(String message) {
		Console.log("consume message {}", message);
	}
}
